#! /bin/sh

CURRENT_VOLUME="$(wpctl get-volume @DEFAULT_AUDIO_SINK@ | awk '{print $2}' )"
IS_MUTE="$(wpctl status | grep -c \**MUTED)"

if [ $CURRENT_VOLUME = "0.00" ] || [ $IS_MUTE = "1" ]
then
    # Show the sound muted notification
    notify-send "Muted" --expire-time=1000
else
    # Show the volume notification
    notify-send "Volume: ${CURRENT_VOLUME}" --expire-time=1000
fi
